package com.wxyzz.canteenadmin.order.orderList.service;

import com.github.pagehelper.PageInfo;
import com.wxyzz.canteenadmin.order.orderList.param.OrderParam;
import com.wxyzz.canteenadmin.order.orderList.vo.MemberInfoVo;
import com.wxyzz.canteenadmin.order.orderList.vo.OrderListVo;
import com.wxyzz.canteencommon.entity.ordermanager.Order;

public interface OrderService {
    // 分页查询
    PageInfo<OrderListVo> getOrder(OrderParam orderParam);

    // 查询某个数据
    OrderListVo getOneOrderById(Integer orderId);

    // 更新订单
    void updateOrder(Order order);

    // 删除
    void deleteOrder(Integer orderId);

    // 通过订单号查询会员信息
    MemberInfoVo getMemberInfoByOrderNumber(String orderNumber);

    // 查询某个数据通过订单号
    OrderListVo getOrderByOrderNumber(String orderNumber);
}
